-- GENERATED SPELL FOR [Azure Raider] --


function spell0_30668(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(52719,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30668', 3252, 1)
end

function spell1_30668(pUnit, Event) --@Destroy Door Seal,n/a--
pUnit:FullCastSpellOnTarget(58040,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30668', 0, 1)
end

function spell2_30668(pUnit, Event) --@Magic Reflection,Self--
pUnit:FullCastSpellOnTarget(60158,pUnit)
pUnit:RegisterEvent('Sorts_30668', 7000, 1)
end

function Sorts_30668(pUnit, Event)
local choix_sorts_30668 = math.random(0, 2)
if choix_sorts_30668 == 0 then
pUnit:RegisterEvent('spell0_30668', 1, 1)
end
if choix_sorts_30668 == 1 then
pUnit:RegisterEvent('spell1_30668', 1, 1)
end
if choix_sorts_30668 == 2 then
pUnit:RegisterEvent('spell2_30668', 1, 1)
end
end

function mob30668_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30668', math.random(1500, 3000), 1)
end

function mob30668_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30668_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30668_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30668, 1, 'mob30668_Action')
RegisterUnitEvent(30668, 2, 'mob30668_Leave')
RegisterUnitEvent(30668, 3, 'mob30668_Kill')
RegisterUnitEvent(30668, 4, 'mob30668_Die')
